package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: Collect
 * Description:收藏表实体类
 * date: 2020/8/28 0028 15:29:47
 * <p>
 * coid	        int	            主键，自增	    编号
 * collectDate	datetime	    非空	            收藏时间
 * uid	        varchar(255)	外键user表	    用户id
 * mid	        int	            外键microblog表	微博编号
 *
 * @author BaiMo
 * @since JDK 1.8
 */
public class Collect implements Serializable {
    private int coid;//编号
    private String collectDate;//收藏时间
    private User user;//用户
    private MicroBlog microBlog;//微博

    public Collect(int coid, String collectDate, User user, MicroBlog microBlog) {
        this.coid = coid;
        this.collectDate = collectDate;
        this.user = user;
        this.microBlog = microBlog;
    }

    public Collect() {
    }

    @Override
    public String toString() {
        return "Collect{" +
                "coid=" + coid +
                ", collectDate='" + collectDate + '\'' +
                ", user=" + user +
                ", microBlog=" + microBlog +
                '}';
    }

    public int getCoid() {
        return coid;
    }

    public void setCoid(int coid) {
        this.coid = coid;
    }

    public String getCollectDate() {
        return collectDate;
    }

    public void setCollectDate(String collectDate) {
        this.collectDate = collectDate;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public MicroBlog getMicroBlog() {
        return microBlog;
    }

    public void setMicroBlog(MicroBlog microBlog) {
        this.microBlog = microBlog;
    }
}
